xen/arm: Use check_workaround to handle the erratum 766422
authorJulien Grall <julien.grall@arm.com>
Thu, 4 Aug 2016 17:50:04 +0000 (18:50 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 4 Aug 2016 17:55:18 +0000 (10:55 -0700)
commit8082e6287ce9f718d04898d2032f56dea13c21dd
tree1386fba416a238780a4eeef41ca2f24f5b2ce0e8
parent238ea8b2338d1465a244681e47bfc1172102dd6d
xen/arm: Use check_workaround to handle the erratum 766422

Currently, Xen is accessing the stored MIDR everytime it has to check
whether the processor is affected by the erratum 766422.

This could take advantage of the new capability bitfields to detect
whether the processor is affected at boot time.

With this patch, the number of instructions to check the erratum is
going down from ~13 (including 2 loads and a co-processor access) to
~6 instructions (include 1 load).

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/cpuerrata.c
xen/arch/arm/traps.c
xen/include/asm-arm/arm32/processor.h
xen/include/asm-arm/arm64/processor.h
xen/include/asm-arm/cpuerrata.h
xen/include/asm-arm/cpufeature.h
xen/include/asm-arm/processor.h